how to check if html table is empty using jquery

51

how to check if html table is empty using jquery -

if ($('#Table1 tr').length == 0) {
    //...do something here
}

Comments

Submit
0 Comments